﻿/* ConfigurationPanel.js Addon Nice Server */
function slideConfig(uniqudId, dir) {
    if (!uniqudId) { return; }

    var opposite = (dir == 'Down' ? 'Up' : 'Down');

    $telerik.$("#" + uniqudId + " .adnCfgPnlContent")["slide" + dir](300);
    $telerik.$("#" + uniqudId + " .adnCfgPnlHead span.adnCfgPnlButton")
		.removeClass("adnCfgPnlUp")
		.removeClass("adnCfgPnlDown")
		.addClass("adnCfgPnl" + opposite);

    $telerik.$("#" + uniqudId + " .adnCfgPnlHead")[0].href = "javascript:slideConfig('" + uniqudId + "','" + opposite + "');";
    $telerik.$("input[name='" + uniqudId + "']").val(dir == "Down" ? "true" : "false");
}

